<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%    
String path = request.getContextPath();    
// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";    
// 将 ”项目路径basePath” 放入pageContext中，待以后用EL表达式读出。    
// pageContext.setAttribute("basePath",basePath);    
%>   
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function goback(){
	window.history.back(-1);
	window.location.reload();
}

</script>
<style>

table tr:FIRST-CHILD {
	background:#f2f2f2;
}
table tr:nth-child(even) {
	background:#d5eeeb;
}


</style>
<body>
<div style="height:800px;width:1400px;  ">
	<div style="height:100%;width:100%; margin-top:100px;  ">
		<table class="table-css" border="1" width="1000px" align="center" cellpadding="3" cellspacing="1" >
		<tr>
		<td style="height:30px;width:50px;">编号</td>
		<td style="height:35px;width:60px;">用户名</td>
		<td style="height:30px;width:50px;">性别</td>
		<td style="height:30px;width:30px;">电话</td>
		<td style="height:30px;width:50px;">重置密码</td>
		<td style="height:30px;width:50px;">修改权限</td>
		<td style="height:30px;width:50px;">更新状态</td>
		<td style="height:30px;width:50px;">删除</td>
		</tr>
		
		<c:forEach var="it" items="${list}">
		
			<tr>
			<td>${it.num}</td>
			<td>${it.userName}</td>
			
		<c:set var="gender"  value="${it.gender}"/>
			<c:if test="${gender == 0 }">
				<td><c:out value="男"/></td>
			</c:if>
			
			<c:if test="${gender == 1 }">
				<td><c:out value="女"/></td>
			</c:if>
			<td>${it.telephone}</td>
			
			
			<td ><a href="Reset?id=${it.user_id}&userName=${it.userName}" >重置密码</a></td>
			<td><a href="user_alter_juris.jsp?id=${it.user_id}" style=" color: #fa9a9a">修改权限</a></td>
			<td><a href="user_update_state.jsp?id=${it.user_id}" style=" color: #fa9a9a">更新状态</a></td>
			<td><a href="Delete?id=${it.user_id}&userName=${it.userName}" style=" color: #fa9a9a">删除</a></td>
			</tr>
			
			
		</c:forEach>
		</table>
		<center>
			<div style="margin-left:200px;margin-top:40px;">
				<a href="Login_0615/selectUser.jsp">上一页</a>，
				<a href="Login_0615/selectUser.jsp">下一页</a>！
				点击<a href="Login_0615/selectUser.jsp">返回</a>！
			</div>
		</center>
	</div>
</div>
	

</body>
</html>